package com.team.mp.mapper.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.team.mp.mapper.dto.DoctorListDto;
import com.team.mp.mapper.entity.Doctor;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * 千锋郑州Java学科欢迎你
 * @program: Tproject
 * @description: 持久层 定义操作数据库的方法
 * @author: lx
 * @create: 2023-03-27 11:59:17
 */
public interface DoctorDao extends BaseMapper<Doctor> {

//    @Select("select id from t_doctor where doctor_name =#{headName} and doctor_phone =#{headPhone}")
//    Long selectId(@Param("headName") String headName, @Param("headPhone") String headPhone);

    public Page<DoctorListDto> listByCond(@Param("page")  Page<DoctorListDto> page,
                                          @Param("partId") Integer partId,
                                          @Param("teamId") Integer teamId);

}
